import axios from 'axios'

export default {
    addrole(data){
        return axios({
            method:"post",
            url: "/addrole?timetamp=" + new Date().getTime(),
            data
        })
    },
    roledata(){
        return axios({
            method:"get",
            url: "/roledata?timetamp=" + new Date().getTime(),
        })
    },
    delrole(data){
        return axios({
            method:"post",
            url: "/delrole?timetamp=" + new Date().getTime(),
            data:{id:data}
        })
    },
    editrole(data){
        return axios({
            method:"post",
            url: "/editrole?timetamp=" + new Date().getTime(),
            data
        })
    }
}